Skip to content

perf(roadmap): intake reads only the issues that changed - #4552

Merged
dan-petty merged 2 commits into
mainfrom
perf/4448-intake-reads-only-the-issues-that
Nov 11, 2026
Merged

dan-petty merged 2 commits into
mainfrom
perf/4448-intake-reads-only-the-issues-that

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

devops roadmap intake keeps a snapshot of the issue listing under the data directory and reads only the issues changed since its watermark (state=all&sort=updated&direction=desc&since=). Each changed issue replaces its parsed record, so intake parses only the changed bodies. A changed sub-issue moves the count of its parent, because GitHub does not move the parent's updated_at. A full read replaces the snapshot when none is kept, when it cannot be read, when another version wrote it, when its last full read is 24 hours old, and on --full.

A CLI run is a new process, so the in-memory ETags of the session did not help, and each run read 46 pages. A disk cache of gidgethub cache= does not fit: a new issue changes the ETag of every page. SnapshotStore is the seam for the shared store of the Service.

Closes #4448

Change: openspec/changes/archive/2026-11-11-4448-intake-reads-only-the-issues-that/

@dan-petty dan-petty added type/infra Type infra: the build, CI, images or cluster scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them labels Nov 11, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Measurement of one intake call (#4448)

Same host (the shared devcontainer), 2026-11-11, devops-cli 0.111.0, one devops roadmap intake --plan --title <t> --body-file <f> call for one new candidate each time. A scratch harness put a monotonic timer and the paced-request count of the ledger around GitHubRoadmapStore.issues(), the first read of plan_intake, in the same process. The load average was 30 to 56 during the runs. Compare with the #4404 timing table (#4404 (comment)).

Run Listing phase (s) Listing requests GitHub requests of the call Whole call (s)
Before, main at 7234d71 67.01 46 47 346.6
After, first run (no snapshot: full read, writes the snapshot) 59.25 46 47 276.5
After, second run (incremental read) 5.08 1 2 306.1
  • The listing phase includes the page transfer, the parse of each body that the read returns, and the read and write of the snapshot. The second run read one page of changed issues and returned 2,209 issues (4,540 issues and pull requests in the snapshot).
  • The snapshot file is 22.8 MB for 4,540 issues and pull requests.
  • The rest of the call is the embedding call of perf(ai): keep intake embeddings between CLI runs #4447 (1,868 texts) and the triage model call. They are not in the scope of this item.
  • Target of the item: the GitHub read is 10 s or less when 20 or fewer issues changed. Measured: 5.08 s on a loaded host.

@dan-petty

Copy link
Copy Markdown
Owner Author

Fail-to-pass

uv run devops ci fail-to-pass --base origin/main (base 5f75d25):

  • errored on base: tests.roadmap.stores.test_listing_snapshot and tests.roadmap.stores.test_roadmap_store_install (collection failure: the module listing_snapshot does not exist on the base)
  • failed on base: test_a_dry_run_is_an_intake_plan_of_planned_requests_with_placeholders, test_a_dry_run_reads_the_changes_since_the_snapshot_or_else_every_issue[False] and [True] (no full argument), and test_a_run_reads_the_changes_since_the_last_run_and_full_reads_the_whole_listing (no --full option)
  • 23 other tests of the same files pass on the base.

The new tests pass on the branch. No live step: the change adds a file under the data directory of the CLI and does not touch the Service, the cluster, a ConfigMap or a Secret.

@dan-petty
dan-petty force-pushed the perf/4448-intake-reads-only-the-issues-that branch from d5e9f80 to d3bef4d Compare November 11, 2026 08:14
devops roadmap intake keeps a snapshot of the issue listing under the data
directory and reads only the issues changed since its watermark, with the
since parameter of the REST listing. Each changed issue replaces its record,
so intake parses only the changed bodies. A full read replaces the snapshot
when none is kept, when it cannot be read, when another version wrote it,
when its last full read is 24 hours old, and on --full.
@dan-petty
dan-petty force-pushed the perf/4448-intake-reads-only-the-issues-that branch from d3bef4d to 6cd9f7a Compare November 11, 2026 08:56
@dan-petty
dan-petty marked this pull request as ready for review November 11, 2026 09:24
@dan-petty
dan-petty merged commit 7dfd155 into main Nov 11, 2026
32 checks passed
@dan-petty
dan-petty deleted the perf/4448-intake-reads-only-the-issues-that branch November 11, 2026 11:59
dan-petty pushed a commit that referenced this pull request Nov 11, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.112.0](v0.111.0...v0.112.0)
(2026-11-11)


### Features

* **k8s:** export gateway spans without key metadata
([#4520](#4520))
([7234d71](7234d71))
* **k8s:** set the homelab domain in container env values
([#4608](#4608))
([a3bcf7c](a3bcf7c))
* **telemetry:** send pydantic-ai spans through the exporter seam
([#4538](#4538))
([fcf2a7a](fcf2a7a))


### Bug Fixes

* **ai:** price cached prompt tokens of chat calls
([#4584](#4584))
([f84bbe6](f84bbe6))
* **devcontainer:** stop uv noise lines in agent shells
([#4592](#4592))
([9ba375c](9ba375c))
* **k8s:** delete gateway management bodies from spans
([#4551](#4551))
([b835d3c](b835d3c))
* **k8s:** set the kube context and namespace on devops pods
([#4514](#4514))
([9087b39](9087b39))
* **roadmap:** a refused spec after the archive is a plan defect
([#4549](#4549))
([1db29f7](1db29f7))
* **roadmap:** count and log the reason of a left-out stage item
([#4541](#4541))
([5600179](5600179))
* **roadmap:** default the step ceiling to twice the budget
([#4556](#4556))
([1dfb6c8](1dfb6c8))
* **roadmap:** explain --trace shows the argument digest
([#4526](#4526))
([c92195f](c92195f))
* **roadmap:** explain totals count dropped model events
([#4543](#4543))
([fe0e979](fe0e979))
* **roadmap:** give each eval verify run its own report file
([#4534](#4534))
([ad27f2d](ad27f2d))
* **roadmap:** one event loop and a time limit for decide_all
([#4585](#4585))
([ec51e01](ec51e01))
* **roadmap:** scoped updates send requests with no row scope
([#4531](#4531))
([5f75d25](5f75d25))
* **roadmap:** the caller gate reads an added parameter span
([#4548](#4548))
([1ba07c1](1ba07c1))
* **roadmap:** the implement shell waits for its command
([#4536](#4536))
([571e044](571e044))
* **roadmap:** the module-test and caller gates read imports and calls
([#4490](#4490))
([8a22e82](8a22e82))
* **service:** put trace ids on Service JSON log lines
([#4511](#4511))
([0d7a0d2](0d7a0d2))


### Performance Improvements

* **ai:** keep intake embeddings between CLI runs
([#4546](#4546))
([812871e](812871e))
* **roadmap:** intake reads only the issues that changed
([#4552](#4552))
([7dfd155](7dfd155))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them type/infra Type infra: the build, CI, images or cluster

Projects

None yet

Development

Successfully merging this pull request may close these issues.

perf(roadmap): intake reads only the issues that changed

1 participant